{# Voice > Models (overseer_ai_voice): one tight table on the canvas, narrowed by the filters with no request (``data-facets``): what the active profile uses, every speech, hearing and live model, every voice. A row plays on a model that speaks it (``speak_button``, one player at a time) and Use puts it on the profile. Below, a line said in a chosen voice and a file transcribed. #} {% from "components/macros/chat.html" import speak_button %} {% from "components/macros/form.html" import checklist, file_button, filter_input, primary_button, text_input %} {% from "components/macros/layout.html" import chart_dot, menu_heading, pick_item, pick_menu %} {% from "pages/overseer/_macros.html" import row_cell, rows_head, rows_scroller %} {% set cell = row_cell("whitespace-nowrap truncate") %}
{{ checklist("ai-voice-kinds", "kind", "Kinds", kinds) }} {{ checklist("ai-voice-providers", "provider", "Providers", providers) }} {{ checklist("ai-voice-models", "model", "Models", models) }} {{ filter_input("#ai-voice-rows", "q", none, placeholder="Search voices and models") }}
{% call rows_scroller("overflow-y-auto", height="flex-1 min-h-0") %} {{ rows_head(["Kind", "Provider", "Name", "Details", "Plays on", "Price / 1M"], right=["Price / 1M"], actions=True) }} {% for row in rows %} {% endfor %}
{{ row.label }} {{ chart_dot(row.color) }}{% if row.speech_page %}{{ row.provider_name }}{% else %}{{ row.provider_name }}{% endif %} {{ row.name }} {{ row.detail }} {{ row.plays_on or "" }} {{ row.price or "" }} {%- if row.blocked %}{{ row.blocked }}{% endif -%} {%- if row.speak %}{{ speak_button(row.speak, "align-middle") }}{% endif -%} {%- if row.use %} {%- elif row.used and row.kind != "use" %}in use{% endif -%}
{% endcall %}
{% if voice_groups %} {# A line said in the picked voice: the form's fields are the preview's. #} {% set picked %}{{ current_voice_name }}{% endset %}
{% call pick_menu(picked, "ai-voice-voices", "Find a voice", name="voice_q") %} {% for group in voice_groups %} {{ menu_heading(group.label, tag="p", attrs="data-voice-group", count=group.voices|length) }} {% for v in group.voices %} {% set picks %}data-voice="{{ v.id }}" data-name="{{ v.name }}" @click="voice = $el.dataset.voice; name = $el.dataset.name" :aria-current="voice === $el.dataset.voice"{% endset %} {% call pick_item(v.name, attrs=picks) %}{{ v.detail }}{% endcall %} {% endfor %} {% endfor %} {% endcall %}
{{ text_input("text", placeholder="Hello from the Overseer", attrs='aria-label="Line to say"', block=False) }} {{ speak_button(say_url, form=True, labelled=True) }}
{% endif %}
{{ file_button("ai-voice-audio", "Choose audio", "audio/*", name="audio", submit=False) }} {{ primary_button("Transcribe", "submit") }}